/*
 * @Description:
 *
 * @Author: XiongYaoYuan<xiongyaoyuan>
 * @Date: 2023-05-31 10:49:10
 * @FilePath: /yuxiuproweb/src/api/app/sku.js
 */
import request from "@/utils/request";

// 查询app_商品_sku;列表
export function listSku(query) {
  return request({
    url: "/app/sku/list",
    method: "get",
    params: query,
  });
}

// 查询app_商品_sku;详细
export function getSku(productSkuId) {
  return request({
    url: "/app/sku/" + productSkuId,
    method: "get",
  });
}

// 新增app_商品_sku;
export function addSku(data) {
  return request({
    url: "/app/sku",
    method: "post",
    data: data,
  });
}

// 修改app_商品_sku;
export function updateSku(data) {
  return request({
    url: "/app/sku",
    method: "put",
    data: data,
  });
}

// 删除app_商品_sku;
export function delSku(productSkuId) {
  return request({
    url: "/app/sku/" + productSkuId,
    method: "delete",
  });
}
